package com.edwin.myselflearn.springjdbc;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

public class SpringJDBCTemplate {
	private JdbcTemplate jdbc=new JdbcTemplate();
	private String sql="select * from basefamilyinf limt 1";
	
	public SpringJDBCTemplate(String sql){
		this.sql=sql;		
	}
	
	public SpringJDBCTemplate(){}
	
	public Map<?, ?> getTableMap(){
		return jdbc.queryForMap(sql);
	}
}
